<?php

/**
 * 系统错误码配置
 */
return array(
    //20000-29999 user api 项目错误码
    'RET_SUCCESS' => array(//成功
        'code' => 10000,
        'msg' => 'SUCCESS',
        'error_message' => '成功'
    ),
    'USER_ERROR' => array(
        'code' => 20001,
        'msg' => 'USERNAME OR PWD ERROR',
        'error_message' => '用户名或密码不正确'
    ),
    'TEL_ERROR' => array(//非法请求
        'code' => 20002,
        'msg' => 'TEL ERROR',
        'error_message' => '手机号错误'
    ),
    'LOGIN_ERROR' => array(//参数错误
        'code' => 20003,
        'msg' => 'LOGIN_ERROR',
        'error_message' => '未登录'
    ),
    'PASS_PARAM_ERROR' => array(
        'code' => 20004,
        'msg' => 'PASS PARAM ERROR',
        'error_message' => '传参形式错误'
    ),
    'USER_EXISTS' => array(
        'code' => 20005,
        'msg' => 'USER EXISTS',
        'error_message' => '用户已存在'
    ),
);
